import Https from '@/utils/https'

// 获取主题树状列表
const treeThemes = () => Https.get('/api/v1/theme/treeThemes')
// 新建或编辑主题
const saveTheme = (params) => Https.post('/api/v1/theme/saveTheme', params)
// 删除主题
const deleteTheme = (params) => Https.post('/api/v1/theme/deleteTheme', params, { json: false })
// 移动主题
const moveTheme = (params) => Https.post('/api/v1/theme/moveTheme', params)

export {
  treeThemes, saveTheme, deleteTheme, moveTheme,
}
